﻿using RXY_Mall.Application.SystemSetting.Dto;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RXY_Mall.Application.SystemSetting
{
    public interface ISystemSettingService
    {
        #region 商品服务

        IList<ServiceDto> GetAllServiceByPage(int iDisplayStart, int iDisplayLength, string title, int status, out int totalCount);

        /// <summary>
        /// 禁用/启用
        /// </summary>
        /// <param name="manageId"></param>
        /// <param name="id"></param>
        /// <param name="isUse"></param>
        /// <returns></returns>
        bool SetIsServiceUse(int manageId, int id, int isUse);

        ServiceDto GetServiceById(int id);

        bool IsExistService(string name);

        Task<Response<bool>> AddorEditService(int managerId, ServiceInput input);
        #endregion
        #region 会员特权

        IList<UserRuleDto> GetAllUserRuleByPage(int iDisplayStart, int iDisplayLength, string title, int status, out int totalCount);

        /// <summary>
        /// 禁用/启用
        /// </summary>
        /// <param name="manageId"></param>
        /// <param name="id"></param>
        /// <param name="isUse"></param>
        /// <returns></returns>
        bool SetIsUserRuleUse(int manageId, int id, int isUse);

        UserRuleInput GetUserRuleById(int id);

        List<UserRuleImgDto> GetUserRulePictures(int id);

        bool IsExistUserRule(string name);

        Task<Response<bool>> AddorEditUserRule(int managerId, UserRuleInput input);
        #endregion
    }
}
